package Day7;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class Listener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
    //加载资源
        System.out.println("contextInitialized....");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
    //释放资源
    }
}
